#ifndef VISITOR_COLLECT_GEODE
#define VISITOR_COLLECT_GEODE 1

#include <vector>
#include <string>

#include <osg/NodeVisitor>
#include <osg/Group>
#include <osg/Geode>
class VisitorCollectGeode : public osg::NodeVisitor
{
public:
    VisitorCollectGeode();
	
    virtual ~VisitorCollectGeode();

    virtual void apply(osg::Geode& node);

    osg::ref_ptr<osg::Group> getCollectionGroup();
    void clearCollectionGroup();
protected:
private:
    osg::ref_ptr<osg::Group> m_collectionGroup;
    int m_count;
};

#endif //!VISITOR_COLLECT_GEODE
